﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Confirmation1.aspx.cs" Inherits="EWDTAssignment.Confirmation1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style3
    {
        width: 23%;
    }
    .style1
    {
        width: 100%;
        height: 306px;
    }
        .style27
        {
            width: 10%;
            height: 107px;
        }
        .style28
        {
            height: 107px;
        }
        .style29
        {
            width: 10%;
            height: 152px;
        }
        .style30
        {
            height: 152px;
        }
        .style31
        {
            width: 10%;
            height: 56px;
        }
        .style32
        {
            height: 56px;
        }
        .style33
        {
            height: 152px;
            width: 229px;
        }
        .style34
        {
            width: 10%;
            height: 37px;
        }
        .style35
        {
            height: 37px;
            width: 229px;
        }
        .style36
        {
            height: 37px;
        }
        .style37
        {
            width: 10%;
            height: 54px;
        }
        .style38
        {
            height: 54px;
            width: 229px;
        }
        .style39
        {
            height: 54px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <br />
            <table class="style1">
                <tr>
                    <td class="style29">
                        <br />
                        <br />
                        Address:<br />&nbsp;<br /></td>
                    <td align="left" class="style33">
                        <asp:TextBox ID="txtbxAddress" runat="server" Height="111px" Width="297px" 
                            ReadOnly="True"></asp:TextBox>
                    </td>
                    <td class="style30">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtbxAddress" Display="Dynamic" 
                            ErrorMessage="Please enter your address" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style37">
                        Postal Code:</td>
                    <td align="left" class="style38">
                        &nbsp;<asp:TextBox ID="txtbxPostal" runat="server"></asp:TextBox>
                    </td>
                    <td class="style39">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtbxPostal" Display="Dynamic" 
                            ErrorMessage="Please enter a Postal Code" Font-Size="Medium" ForeColor="Red"></asp:RequiredFieldValidator>
                        <br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtbxPostal" Display="Dynamic" 
                            ErrorMessage="Postal Code must be all numbers" Font-Size="Medium" 
                            ForeColor="Red" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style34">
                    </td>
                    <td align="left" class="style35">
                        <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" Text="Edit" 
                            Width="100px" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" 
                            Text="Save Changes" Width="100px" />
                    </td>
                    <td class="style36">
                    </td>
                </tr>
                <tr>
                    <td class="style31">
                    </td>
                    <td class="style32" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td class="style27">
                    </td>
                    <td class="style28">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" 
                            CellPadding="4" GridLines="Horizontal" Height="157px" Width="571px">
                            <Columns>
                                <asp:BoundField DataField="Count" HeaderText="Item #">
                                <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ProductName" HeaderText="Product Name">
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Quantity" HeaderText="Quantity">
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Price" HeaderText="Price">
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#333333" />
                            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="White" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F7F7F7" />
                            <SortedAscendingHeaderStyle BackColor="#487575" />
                            <SortedDescendingCellStyle BackColor="#E5E5E5" />
                            <SortedDescendingHeaderStyle BackColor="#275353" />
                        </asp:GridView>
                    </td>
                    <td class="style28">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3" style="width: 10%">
                        &nbsp;</td>
                    <td align="right">
                        <asp:Label ID="lblGtotal" runat="server" Font-Bold="True" Font-Size="Medium" 
                            ForeColor="Lime"></asp:Label>
                    </td>
                    <td align="right">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3" style="width: 10%">
                        &nbsp;</td>
                    <td colspan="2">
                        <asp:Button ID="btnConfirm" runat="server" onclick="btnConfirm_Click" 
                            Text="Confirm Checkout" />
                    </td>
                </tr>
                <tr>
                    <td class="style3" style="width: 10%">
                        &nbsp;</td>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
            </table>
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
